.class Lcom/noshufou/android/su/preferences/PreferencesActivity$3;
.super Ljava/lang/Object;
.source "PreferencesActivity.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/noshufou/android/su/preferences/PreferencesActivity;->onPreferenceChange(Landroid/preference/Preference;Ljava/lang/Object;)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

.field private final synthetic val$ghostMode:Z


# direct methods
.method constructor <init>(Lcom/noshufou/android/su/preferences/PreferencesActivity;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$3;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    iput-boolean p2, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$3;->val$ghostMode:Z

    .line 268
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 3
    .parameter "dialog"
    .parameter "which"

    .prologue
    const/4 v0, 0x1

    .line 272
    iget-object v1, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$3;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    #getter for: Lcom/noshufou/android/su/preferences/PreferencesActivity;->mGhostMode:Landroid/preference/CheckBoxPreference;
    invoke-static {v1}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->access$6(Lcom/noshufou/android/su/preferences/PreferencesActivity;)Landroid/preference/CheckBoxPreference;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

    .line 273
    iget-object v1, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$3;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    invoke-virtual {v1}, Lcom/noshufou/android/su/preferences/PreferencesActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    iget-boolean v2, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$3;->val$ghostMode:Z

    if-eqz v2, :cond_0

    const/4 v0, 0x0

    :cond_0
    invoke-static {v1, v0}, Lcom/noshufou/android/su/util/Util;->toggleAppIcon(Landroid/content/Context;Z)V

    .line 274
    new-instance v0, Landroid/app/AlertDialog$Builder;

    iget-object v1, p0, Lcom/noshufou/android/su/preferences/PreferencesActivity$3;->this$0:Lcom/noshufou/android/su/preferences/PreferencesActivity;

    invoke-direct {v0, v1}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 275
    const v1, 0x7f0b0040

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 276
    const v1, 0x7f0b0044

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 277
    const v1, 0x7f0b0017

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 278
    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    .line 279
    return-void
.end method
